<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生详情</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
        }

        h1 {
            color: #333;
            text-align: center;
        }

        .details {
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: 0 auto;
        }

        .details p {
            font-size: 18px;
            margin: 10px 0;
        }

        a {
            display: block;
            margin-top: 20px;
            color: #007bff;
            text-decoration: none;
            text-align: center;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<h1>学生详情</h1>

<div class="details">
    <p>ID: <span th:text="${student.id}"></span></p>
    <p>姓名: <span th:text="${student.studentname}"></span></p>
    <p>性别: <span th:text="${student.gender}"></span></p>
    <p>年龄: <span th:text="${student.age}"></span></p>
</div>

<a href="/student">返回学生列表</a>
</body>
</html>
